package com.javafactroy.kunlong.bip.icp.netty.server;


import com.javafactroy.kunlong.bip.icp.netty.server.framework.NettyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import com.javafactroy.kunlong.bip.icp.common.consts.EAppType;
import org.springframework.stereotype.Component;


@Component
public class NettyStartRunner implements ApplicationRunner {
    @Autowired
    NettyServer nettyServer;

    @Override
    public void run(ApplicationArguments args) throws Exception {
         nettyServer.start(EAppType.dxp);

    }
}